package records

import (
	"github.com/golib/mysql"
)

const RecordNameOnlineClassStudent = "online_class_student"

func init() {
	var r = &OnlineClassStudent{}
	mysql.RegisterRecord(r.Name(), r)
}

type OnlineClassStudent struct {
	ClassStudentId  int    `json:"classStudentId" form:"classStudentId" column:"class_student_id" primary:"true" modify:"false"`
	ClassId         int    `json:"classId" form:"classId" column:"class_id" modify:"true"`
	StudentId       int    `modify:"true" json:"studentId" form:"studentId" column:"student_id"`
	CreateTime      string `modify:"false" json:"createTime" form:"createTime" column:"create_time"`
	UpdateTime      string `json:"updateTime" form:"updateTime" column:"update_time" modify:"false"`
	Source          int    `json:"source" form:"source" column:"source" modify:"true"`
	PreviousClassId int    `json:"previousClassId" form:"previousClassId" column:"previous_class_id" modify:"true"`
}

func (r *OnlineClassStudent) Name() string {
	return RecordNameOnlineClassStudent
}
